package savet.gui.tabelas.salario.editor;

import java.util.List;
import org.openswing.swing.mdi.client.MDIFrame;
import savet.entidades.atributos.HoraExtra;
import savet.gui.dialogos.DialogoHoraExtra;

/**
 *
 * @author Bsi 2007
 */
public class HoraExtraCellEditor extends AbstractButtonCellEditor {

    @Override
    public void actionEditor(Object value) {
        if (value instanceof List) {
            DialogoHoraExtra d = new DialogoHoraExtra(MDIFrame.getInstance(), true, (List<HoraExtra>) value);
            d.setLocationRelativeTo(null);
            d.setVisible(true);
        }
    }

}
